﻿using System;
using System.Collections.Generic;

namespace DDDSample.Domain.Model.Locations
{
	public interface ILocationRepository
	{
		/// <summary>
		/// Finds a location using given unlocode.
		/// </summary>
		/// <param name="unLocode">UnLocode</param>
		/// <returns>Location</returns>
		Location Find(UnLocode unLocode);

		/// <summary>
		/// Finds all locations
		/// </summary>
		/// <returns>All locations</returns>
		IList<Location> FindAll();
	}
}
